package com.jiedeng.dao;

import com.jiedeng.model.Norm;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by qinyu on 2017/8/9.
 */
public interface INormRepository extends JpaRepository<Norm, Long> {

    List<Norm> findByNormTypeId(int typeId);

    List<Norm> findByNormGradeId(int normId);

    List<Norm> findByNormTypeIdAndNormGradeId(int typeId, int normId);

}
